﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using eschoolBO;

namespace ESCHOOL.admin
{
    public partial class WebForm24 : System.Web.UI.Page
    {
        report rep = new report();
        Classes cl = new Classes();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable dt = cl.GetRecords(-99, "", -99, false, " and ");
                ddclasses.DataSource = dt;
                ddclasses.DataTextField = "class_name";
                ddclasses.DataValueField = "class_id";
                ddclasses.DataBind();
            }

        }

        protected void btnview_Click(object sender, EventArgs e)
        {
            //Response.Write(Convert.ToInt64(ddclasses.SelectedValue.ToString()));
            DataTable dt = rep.GetRecords(-99, ddxams.SelectedValue.ToString(), Convert.ToInt64(ddclasses.SelectedValue.ToString()), -99, -99, -99, -99, -99, -99, -99, -99, -99, -99, -99, "", -99, false, " and ");
            GridView1.DataSource = dt;
            GridView1.DataBind();
        }

        protected void ddxams_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        protected void ddclasses_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {

        }
    }
}
